<extend name="Public/base" />

<block name="body">
	<div class="am-cf am-u-md-12 header-title">
		<h2>生成模型</h2>
	</div>

	<!-- 标签页导航 -->
	<div class="am-cf am-u-md-12">
		<!-- 表单 -->
		<form id="form" action="{:U('generate')}" method="post" class="am-form am-form-horizontal doc-modal-form">
			<!-- 基础 -->
			<div class="am-form-group">
				<label class="am-u-md-2 am-form-label">数据表</label>
				<div class="am-u-md-10">
					<select name="table">
						<volist name="tables" id="tb">
							<option value="{$tb}">{$tb}</option>
						</volist>
					</select>
					<span class="am-form-help">（当前数据库的所有表）</span>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-md-2 am-form-label">模型标识</label>
				<div class="am-u-md-10">
					<input type="text" class="text " name="name" value="">
					<span class="am-form-help">（模型英文标识）</span>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-md-2 am-form-label">模型名称</label>
				<div class="am-u-md-10">
					<input type="text" class="text " name="title" value="">
					<span class="am-form-help">（模型名称）</span>
				</div>
			</div>

			<!-- 按钮 -->
			<div class="am-form-group">
            	<div class="am-u-sm-10 am-u-sm-offset-2">
					<input type="hidden" name="id" value="{$id}"/>
					<button class="am-btn am-btn-primary submit-btn ajax-post no-refresh" type="submit" target-form="am-form-horizontal">生 成</button>
					<button class="am-btn am-btn-default btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div>
		</form>
	</div>
</block>
<block name="script">
<script type="text/javascript" src="__PUBLIC__/js/jquery.dragsort-0.5.1.min.js"></script>
</block>